package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Chat;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IChatService {

    /*
    * 查看聊天历史
    * */
    List<Chat> listForChatHistory (Long sendId,  Long receiveId);
    /*
    * 增加聊天记录
    * */
    void  save(Chat chat);
    /*
    * 查出未读
    * */
    List<Chat> listState (Long receiveId);

    /*
     * 清除未读
     * */
    void updateState(Long receiveId);
    /*
     * 查询未读数量数量
     * */
    Integer listStateNum(@Param("receiveId") Long receiveId);





}
